BaseSubsystem.Log method
Records the specified data in the logging shared memory.
Namespace: IntervalZero.KINGSTAR.Base.Class
Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
ILogCommand Log(
KsLogChannel[] Channels,
int TriggerChannel,
double TriggerValue,
KsLogTriggerType TriggerType,
double Duration
)
Function Log(
Channels As KsLogChannel(),
TriggerChannel As Integer,
TriggerValue As Double,
TriggerType As KsLogTriggerType,
Duration As Double
) As ILogCommand
Parameters
Channels
Type: KsLogChannel[]
The data that will be recorded in every channel.
TriggerChannel
Type: int
The channel that triggers the recording.
TriggerValue
Type: double
When the logging channel's value reaches the trigger value, the recording starts.
TriggerType
Type: KsLogTriggerType
The way to trigger the recording.
Duration
Type: double
How long you want to record the data. The unit is second. The log can be recorded up to 10 minutes. If you set it to zero, the system will continue recording and keep the latest 10-minute data.
Return value
Type: ILogCommand
Returns a log command.
Usable EtherCAT states
ecatOP
See also